import 'package:flutter/material.dart';
import 'package:ruitmentapp/core/extension/create_materialColor.dart';

class ZJAppTheme {
  // 1.共有属性
  static const double bodyFontSize = 14;
  static const double smallFontSize = 16;
  static const double normalFontSize = 20;
  static const double largeFontSize = 24;
  static const double xlargeFontSize = 30;

  // 2.普通模式
  static final Color norTextColors = Colors.red;

  static final ThemeData norTheme = ThemeData(
    primarySwatch: createMaterialColor(const Color(0xFF5D55FC)),
    splashColor: Colors.transparent,
    highlightColor: Colors.transparent,
    canvasColor: Colors.white,
    textTheme: const TextTheme(
      bodyText1: TextStyle(fontSize: bodyFontSize),
      headline1: TextStyle(fontSize: smallFontSize, color: Colors.black87),
      headline2: TextStyle(fontSize: normalFontSize, color: Colors.black87),
      headline3: TextStyle(fontSize: largeFontSize, color: Colors.black87),
      headline4: TextStyle(fontSize: xlargeFontSize, color: Colors.black87, fontWeight: FontWeight.w400),
    )
  );


  // 3.暗黑模式
  static const Color darkTextColors = Colors.green;

  static final ThemeData darkTheme = ThemeData(
    primarySwatch: Colors.grey,
    textTheme: const TextTheme(
        bodyText1: TextStyle(fontSize: normalFontSize, color: darkTextColors)
    )
  );
}